Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Elementor users - please update WPML to the latest version to maintain compatibility. More details here - https://wpml.org/changelog/2024/12/wpml-4-6-15-critical-update-for-elementor-sites/
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 14 replies, has 2 voices.

Last updated by Waqas Bin Hasan 11 months, 2 weeks ago.

Assisted by: Waqas Bin Hasan.

Author Posts
December 31, 2023 at 3:04 pm #15138895
guy@media-vision.co.il

while both seems like very minor bug to fix, they brake the ability to complete order.
Bugs only for the second currency - USD.

Created brand new WP with the latest versions of the needed plugins.
Clean minimum plugins just to show the bugs.

BUG 1 - scare client - show double price in grouped product. (1 parameter mistake)

the 2 bugs related to the multicurrency.

************* bug 1 ******************
I am trying to: View grouped product page with the right prices.

Link to a page where the issue can be seen:hidden link

I expected to see: "From" price = 119$

Instead, I got: "From" price = 238

See images and some more info in the word doc (google drive): hidden link

************* bug 2 ******************
BUG 2 - charge client alot more on switching subscription. (1 parameter mistake)

New threads created by Waqas Bin Hasan and linked to this one are listed below:

https://wpml.org/forums/topic/split-woo-subscriptions-wrong-price/

January 1, 2024 at 12:35 pm #15139453

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

As per our support policy we can handle only 1 issue per ticket, so in this ticket I'll be handling BUG 1 (show double price in grouped product).

I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.

Your next answer will be private, to share this information safely.

Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend.

IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

Regards.

P.S.: For the BUG 2, I've split it into a separate ticket (https://wpml.org/forums/topic/split-woo-subscriptions-wrong-price/) and 'll be handled accordingly.

January 2, 2024 at 6:12 am #15140116

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the access and the details. I am working on it and 'll get back to you accordingly.

January 2, 2024 at 8:58 am #15142373

guy@media-vision.co.il

OK thank you.

January 3, 2024 at 7:22 am #15145279

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I was able to reproduce the issue in a fresh sandbox site. It happens when WCML's multicurrency mode is enabled.

I've escalated the issue to our 2nd tier team for detailed investigation and 'll update you as soon as I hear back.

January 3, 2024 at 2:33 pm #15147310

guy@media-vision.co.il

Thank you for checking.
My tests were also on clean new worpdress and latest versions of plugins and theme.
i did it after spoting the issue in production website.

Waiting for update.

January 4, 2024 at 5:43 am #15149160

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Sure, thanks, 'll keep you posted about the progress.

January 10, 2024 at 9:43 am #15167818

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

Our team found that all the child products have manual price enabled but no price is defined in there (see attached).

So either you have to set these prices or turn it off (switch to "Calculate prices in other currencies automatically") by editing each child product in the subscription plan. And then it works fine: hidden link.

Please check on your site and confirm.

image4.png
January 11, 2024 at 7:40 am #15172368

guy@media-vision.co.il

Thank you for your reply.

The answer cannot be classified as "finding" ("Our team found"). It is more likely to be an assumption. Your team thinks that maybe.

The reason this answer cannot be real is that these two settings exist in each and every product that belongs to this grouped product.

Please find screenshots of the three products' price settings in this Word document:
hidden link

In the document, you will also see a link to the grouped product.

Furthermore, this bug is also happening on our production website, and there, people are buying in dollars. No price is missing.

For these reasons, it looks like your team didn't find or didn't look.

I can hide this line that says "From: X$" but the bug is still there, standing tall. Please check and see for yourself.

January 11, 2024 at 12:53 pm #15174550

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Sure, I'll check again and 'll get back to you accordingly.

January 12, 2024 at 5:35 am #15177220

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I've retested the issue based on your shared document and I agree the issue is still evident in this case. I am not sure how it was overlooked but when I created my sandbox site, following your test site, these areas were just empty - or perhaps I may have missed it.

Anyways, apologies for the confusion, I've escalated the issue again to our 2nd tier team. And 'll get back to you accordingly.

January 14, 2024 at 12:52 pm #15182336

guy@media-vision.co.il

Hi,

Looks like in this ticket the fixed the "From" price in grouped product (only for logged in client): https://wpml.org/forums/topic/split-woo-subscriptions-wrong-price/#post-15182333

i had a feeling this ticket should include both subject.

any way you can check.

January 15, 2024 at 7:57 am #15183388

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I got the following workaround:

IMPORTANT: Take full backup of your website and database beforehand.

- Open the file "/wp-content/plugins/woocommerce-multilingual/compatibility/WcSubscriptions/MulticurrencyHooks.php" for editing.

- In the function subscriptions_product_sign_up_fee_filter() around line 86, look for the following line:

$subscriptionSignUpFee = get_post_meta( $originalProductId, '_subscription_sign_up_fee_' . $currency, true );

- Replace it with the following code:

$subscriptionSignUpFeeCurrency =  get_post_meta( $originalProductId, '_subscription_sign_up_fee_' . $currency, true );
					if (! empty($subscriptionSignUpFeeCurrency) ) {
						$subscriptionSignUpFee = $subscriptionSignUpFeeCurrency;
					}

And it should resolve the issue. I've tried this in the sandbox (hidden link) and seems to work fine.

This issue seems to be already escalated to our compatibility team.

Please let me know how it goes for you, after applying the above mentioned workaround in your site.

January 15, 2024 at 11:48 am #15184755

guy@media-vision.co.il

Waqas,

Thank you very much for the consistency and solution.

I can approve the workaround for fixing the issue of the "From" price. It also fixes the product display in the shop and on the product page.

Now, the "From" price is correct, both on the shop page (01-grouped_product-shop_display.png) and the product page (01-grouped_product-product_display.png).

Could you please check if this workaround can be included in the next upcoming WCML plugin update?

01-grouped_product-product_display.png
01-grouped_product-shop_display.png
January 15, 2024 at 1:06 pm #15185348

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for confirming and glad the workaround fixed the problem.

Unfortunately there aren't much reports about this issue, as well as, there are no ETAs so far.

But I'll recommend bookmarking this ticket for later references (when needed again after a new update, which doesn't include the solution).